﻿using FluentMigrator;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ETA.DbMigrations.V20140524
{
  
    public class _02_InitUser : AutoReversingMigration
    {
        public override void Up()
        {
            var now = DateTime.Now;
            var userId = Guid.NewGuid().ToString();
            Insert.IntoTable("User")
           .Row(new { UserId = userId, UserName = "Dick", CreateDate = now, ModifyDate = now, IsDelete = 0 });
            Insert.IntoTable("RolerRealtion")
            .Row(new { UserId = userId, RolerId = "0a559b1b-d83f-4c65-b6f5-2803dcad7012", CreateDate = now, ModifyDate = now, IsDelete = 0 })
            .Row(new { UserId = userId, RolerId = "3591855f-8991-4d1e-9685-a8bf623cbf04", CreateDate = now, ModifyDate = now, IsDelete = 0 });
        }
    }
}
